Today's Question:  What does your personal desk look like?        GIVE A SHOUT

SEARCH KEYWORD -- XSS Cross sit



  What do people think about IE?

Browser war among major browsers is continuing for a long time since last century. Just a few years ago, Internet Explorer was the most used web browser. But now the situation is completely different, people are making fun of Internet Explorer and switching to other browsers. Today we share some jokes about Internet Explorer, it's just for fun, so grab a cup of coffee and sit down and enjoy. Hmm, is IE so slow? What gun is it? Hmm, I am still one step behind And I am lost. Hey, what is HTML...

   IE,Joke,Chrome     2013-07-31 08:25:24

  Building an iPhone application.

One of my New Years resolutions was to finally learn the iOS SDK and build a 'real' application.I am happy to report that progress is going really well and wanted to share something that I have noticed about iOS programming.It only looks scary... it's not. It's actually very easy.Now, I am not building Mail, Angry Birds or Photosynth or anything, but the core concepts of the SDK are not that bad once you spend some time learning delegation. If you don't understand delegation, iOS programmi...

   Apple,iOS,Application development     2012-01-28 07:03:36

  ARE YOU LIKE ME? OR DO YOU HAVE DISCIPLINE?

If you are anything like me, you've started more things than you have finished. We're innately curious about the things around us and inspired when we come across people who have mastered their trade. We see people create cool and beautiful things and think, "Man, that looks easy, if I put in a little time I can do that in no time." What follows is a few days or weeks of focused and dedicated learning. During this time we make some progress, but not much. In fact, the progress that we do ma...

   Work,Learning,Effort,Detail,Complexity     2011-10-25 10:27:28

  10 less known but useful PHP functions

PHP has abundant built in functions. As PHP developers, we may have used many of them. But there are still some useful functions we may not be so familiar with. In this post, we will introduce some of them. levenshtein() Have you ever wondered how to check differences between two works? This function just does what you want. It can tell you how much the difference is between two words. <?php $str1 = "carrot"; $str2 = "carrrott"; echo levenshtein($str1, $str2); //Outputs 2 ?> get_defined_va...

   PHP,function     2014-01-20 08:01:31

  SameSite attribute in cookie

Starting from Chrome 51, a new attribute SameSite has been introduced for browser cookie. This attribute is to prevent CSRF attack. Cookie is normally used to store data exchanged between client and server. It frequently stores user login information. If a malicious website can forge a HTTP request with the valid third party website cookie, it may be called a CSRF attack. For example, if a user logins to a bank website your-bank.com, the bank server responds a cookie: Set-Cookie:id=a3fWa; L...

   JAVASCRIPT,COOKIE,SAMESITE,CHROME,CSRF     2019-09-14 04:57:51

  Introducing the for-if anti-pattern

Over the years, I've seen a bunch of coding anti-patterns. I figured maybe I'll share a few. Today, I'll introduce what I'm calling the for-if anti-pattern, also known as "We'll sell you the whole seat, but you'll only need the edge." This is a special case of the for-case anti-pattern, where all but one of the cases is null. for (int i = 0; i < 100; i++) { if (i == 42) { do_something(i); } } This can naturally be simplified to do_something(42); The for-if anti-pattern arises in ma...

   Programming,Anti-pattern,for-if,efficiency     2012-02-02 10:18:15

  Waking up early, 10 tips that work

In this blog post I am going to cover a topic that I have been occupied with for several weeks now: Becoming an early riser. Getting up early can be a great way to help you establish a daily routine which is the first step to becoming more productive. Here I present you 10 tips that helped me in becoming an early riser. 1. Get up The most important step is to get up. Actually not just get up, literally try to jump out of bed. After your alarm rings get up instantly, go to another room and t...

   Body,Rest,Health     2012-04-11 13:44:34

  Why do C++ folks make things so complicated?

This morning Miroslav Bajtoš asked “Why do C++ folks make things so complicated?” in response to my article on regular expressions in C++. Other people asked similar questions yesterday. My response has two parts: Why I believe C++ libraries are often complicated.Why I don’t think it has to be that way. Why would someone be using C++ in the first place? Most likely because they need performance or fine-grained control that they cannot get somewhere else. A Ruby programmer...

   C++,Complicated,C++ PRogrammer,Design pattern     2011-12-31 15:45:39

  3 reasons why Alibaba invests on Sina Weibo

Last night, Alibaba announced acquisition of 18% shares of Sina Weibo with $586 million, according to sources close to the deal, after the completion of this deal, Alibaba will become the second largest shareholder of Sina Weibo and may become the largest shareholder in the future.This deal was supposed to be completed before Chinese Spring Festival, but because Alibaba and Sina had a heated argument about the share holding of Sina Weibo which resulted in substantial delay in the time to complet...

   Alibaba,Sina Weibo     2013-04-29 20:30:05

  Creativity requires isolation

How many times have you tried to get something done that needed some touch of originality and creativity and yet got that annoying mind block which is manifested by blank stares, scratching and biting on anything in reach? “all the damn time” I hear? As preconditions to be creative, one should know something well while having the utmost focus on it. Someone who knows little about aerodynamics can’t come up with the idea for next concord. And focus has two aspects: kno...

   Creativity,Isolation,Quiet,Paper,Pen     2011-11-28 09:33:57